M291 S5 J1 F60 L0 H100 R"Set Hepa Fan Speed in %" P"Recommended values: 50–80%."
var speed = floor(255 * input / 100)
set global.hepaFan = var.speed
echo >"0:/sys/user/variables/HepaFan.g" "set global.hepaFan = "^{var.speed}
M106 P7 H3 T35:90 L0.2 X{global.hepaFan}          ; Configure thermostatic control
echo "HEPA fan speed set to " ^ input ^ "%"